<template>
  <div id="app">
    <loading ref="loading"></loading>
    <router-view></router-view>
  </div>
</template>
<script>
  import Loading from '../components/Loading.vue';
  export default {
    name: 'App',
    components: {
      Loading: Loading
    },
    metaInfo: {
      title: '首页'
    },
    mounted () {
      this.$loading = this.$refs.loading;
    },
    created () {
      this.$root.$loading = this;
    },
    methods: {}
  };
</script>
